package com.itheima.pojo;

import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class PetService {
    private Integer id;
    @Pattern(regexp = "^[\\u4e00-\\u9fa5_a-zA-Z0-9]+$",message = "姓名格式不正确")
    private String realName;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String tel;
    private Integer createUser;
    private String province;
    private String city;
    private String area;
    private String address;
    private String doorNum;
    @URL
    private String bowlImg;
    @URL
    private String grainImg;
    @URL
    private String waterImg;
    private String walk;
    private String peopleService;
    private Date date;
    private LocalDateTime createTime;
    private String username;
}
